package com.ruoyi.stock.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock.mapper.QwStockdayinfoMapper;
import com.ruoyi.stock.domain.QwStockdayinfo;
import com.ruoyi.stock.service.IQwStockdayinfoService;

/**
 * 每日股票信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-16
 */
@Service
public class QwStockdayinfoServiceImpl implements IQwStockdayinfoService 
{
    @Autowired
    private QwStockdayinfoMapper qwStockdayinfoMapper;

    /**
     * 查询每日股票信息
     * 
     * @param dayInfoId 每日股票信息主键
     * @return 每日股票信息
     */
    @Override
    public QwStockdayinfo selectQwStockdayinfoByDayInfoId(Long dayInfoId)
    {
        return qwStockdayinfoMapper.selectQwStockdayinfoByDayInfoId(dayInfoId);
    }

    /**
     * 查询每日股票信息列表
     * 
     * @param qwStockdayinfo 每日股票信息
     * @return 每日股票信息
     */
    @Override
    public List<QwStockdayinfo> selectQwStockdayinfoList(QwStockdayinfo qwStockdayinfo)
    {
        return qwStockdayinfoMapper.selectQwStockdayinfoList(qwStockdayinfo);
    }

    /**
     * 新增每日股票信息
     * 
     * @param qwStockdayinfo 每日股票信息
     * @return 结果
     */
    @Override
    public int insertQwStockdayinfo(QwStockdayinfo qwStockdayinfo)
    {
        return qwStockdayinfoMapper.insertQwStockdayinfo(qwStockdayinfo);
    }

    /**
     * 修改每日股票信息
     * 
     * @param qwStockdayinfo 每日股票信息
     * @return 结果
     */
    @Override
    public int updateQwStockdayinfo(QwStockdayinfo qwStockdayinfo)
    {
        return qwStockdayinfoMapper.updateQwStockdayinfo(qwStockdayinfo);
    }

    /**
     * 批量删除每日股票信息
     * 
     * @param dayInfoIds 需要删除的每日股票信息主键
     * @return 结果
     */
    @Override
    public int deleteQwStockdayinfoByDayInfoIds(Long[] dayInfoIds)
    {
        return qwStockdayinfoMapper.deleteQwStockdayinfoByDayInfoIds(dayInfoIds);
    }

    /**
     * 删除每日股票信息信息
     * 
     * @param dayInfoId 每日股票信息主键
     * @return 结果
     */
    @Override
    public int deleteQwStockdayinfoByDayInfoId(Long dayInfoId)
    {
        return qwStockdayinfoMapper.deleteQwStockdayinfoByDayInfoId(dayInfoId);
    }
}
